﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Web;
using System.Web.Mvc;
using XinYi.CrookedShow.BLL;
using XinYi.CrookedShowBack.Models;
using XinYi.CrookedShowMode;

namespace XinYi.CrookedShowBack.Controllers
{
    public class OrderInformationController : Controller
    {
        OrderInformationService orderInformationService = new OrderInformationService();
        public JsonResult GetOrderInformation(int page, int limit, string wheres,string wheress,string biaohao)
        {
            PageListResult<OrderInformation> pageListResult = new PageListResult<OrderInformation>();
            pageListResult.code = 0;
            pageListResult.msg = string.Empty;
            
            List<OrderInformation> result = orderInformationService.GetOrderInformation(wheres,wheress,biaohao);
            pageListResult.count = result.Count();
            pageListResult.data = result;
            return Json(pageListResult,JsonRequestBehavior.AllowGet);
        }
    }
}